/*
 * Copyright (C) 2015 yixun All Rights Reserved.
 *
 * PremisesMapper.java
 */
package com.yixun.qfbao.xf.mapper;

import org.apache.ibatis.annotations.Param;

import com.yixun.qfbao.xf.model.PartnerDeptQrCode;

/**
 * @author zilong.liu
 */
public interface PartnerDeptQrcodeMappper {
	
	/**
	 * 根据人员ID，部门ID查询对应的二维码链接
	 * @param partnerDeptQrcode
	 * @return
	 */
	public PartnerDeptQrCode selectByPartnerIdAndDeptId(@Param("partnerDeptQrCode")PartnerDeptQrCode partnerDeptQrcode);
	
	/**
	 * 根据人员ID，部门ID更新对应的二维码链接
	 * @param partnerDeptQrcode
	 * @return
	 */
	public int updateByPartnerIdAndDeptId(@Param("partnerDeptQrCode")PartnerDeptQrCode partnerDeptQrcode);
	
	/**
	 * 删除当前部门的所有二维码链接
	 * @param partnerDeptQrcode
	 * @return
	 */
	public int delsByDeptId(@Param("partnerDeptQrCode")PartnerDeptQrCode partnerDeptQrcode);
	
	/**
	 *  新增
	 * @param partnerDeptQrcode
	 * @return
	 */
	public int add(PartnerDeptQrCode partnerDeptQrcode);
	
}
